<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增诊疗单')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncZhenliaoLogs-add">
			<input type="hidden" name="zlType" value="2"/>
			<input id="treeId" name="treeId" type="hidden" value="1"/>
			<input id="drugId" name="drugId" type="hidden" value="1"/>
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">诊疗类型 1:牛舍 2：鸡舍：</label>
				<div class="col-sm-8">
					<input id="zlType" name="zlType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">状态:1：待确认 2：已挂起 3：已确认：4：待执行：</label>
				<div class="col-sm-8">
					<input id="zlStatus" name="zlStatus" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">订单id：</label>
				<div class="col-sm-8">
					<input id="orderId" name="orderId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">牛耳号：</label>
				<div class="col-sm-8">
					<input id="cowCode" name="cowCode" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">牛id：</label>
				<div class="col-sm-8">
					<input id="cowId" name="cowId" class="form-control" type="text">
				</div>
			</div>-->
			<div class="form-group">	
				<label class="col-sm-3 control-label">鸡舍号：</label>
				<div class="col-sm-8">
					<select name="roomNum" class="form-control m-b" th:with="type=${@dict.getType('chicken_juanshe_num')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
					</select>
				</div>
			</div>
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">日龄：</label>
				<div class="col-sm-8">
					<input id="ageDays" name="ageDays" class="form-control" type="text">
				</div>
			</div>-->
			<div class="form-group">	
				<label class="col-sm-3 control-label"> 发病次数：</label>
				<div class="col-sm-8">
					<input id="illMuns" name="illMuns" class="form-control" type="number" required onkeyup=" value=value.replace(/^(0+)|[^\d]+/g,'')" min="0">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">症状：</label>
				<div class="col-sm-8">
					<input id="symptom" name="symptom" class="form-control" type="text">
				</div>
			</div>
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">推送人：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="reportUser" name="reportUser" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<div class="form-group">
				<label class="col-sm-3 control-label">推送人：</label>
				<div class="col-sm-8">
					<select id="zlUser" name="zlUser" class="form-control select2-multiple">
						<option th:each="user:${users}" th:value="${user.userId}" th:text="${user.loginName}"></option>
					</select>
				</div>
			</div>
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">诊疗用药id：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="drugId" name="drugId" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">用药方法：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="drugMethod" name="drugMethod" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">用药量-->
<!--：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="drugAmount" name="drugAmount" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">用药剂量单位-->
<!--：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="unit" name="unit" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">诊疗结果：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="zlResult" name="zlResult" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">诊疗时间：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="zlTime" name="zlTime" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">创建者：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="createBy" name="createBy" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<!--<div class="form-group">	-->
				<!--<label class="col-sm-3 control-label">创建时间：</label>-->
				<!--<div class="col-sm-8">-->
					<!--<input id="createTime" name="createTime" class="form-control" type="text">-->
				<!--</div>-->
			<!--</div>-->
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark"  class="form-control valid" type="text" rows="4"></textarea>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ncChickenZhenliaoLogs"
		$("#form-ncZhenliaoLogs-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-ncZhenliaoLogs-add').serialize());
	        }
	    }
	</script>
</body>
</html>
